package cn.stronglink.oil.mq;

import cn.stronglink.oil.entity.DeviceAlarmInfo;
import cn.stronglink.oil.entity.DeviceRealTimeInfo;

/**
 * Created by Tgb on 2017/5/16.
 */

public interface IMqListener {

    /**
     * 连接成功
     */
    void onConnect();

    /**
     * 断开连接
     */
    void onDisConnect();

    /**
     * 接收的数据
     * @param realTimeInfo
     */
    void onRecData(DeviceRealTimeInfo realTimeInfo);
    void onRecAlarmData(DeviceAlarmInfo deviceAlarmInfo);

}
